	<ul id="assessment_spast">
	<?php foreach($assessment_items as $key => $item):
		if($item['marked']!=''){
	?>
		
		<li>
		<a href="<?php echo site_url("/assessment/view/".$item['assessment_id']); ?>"><?php echo $item['assessment_title']; ?></a>
		<i<?php if($item['marked']=='0' && $item['result']==''){echo ' class="nm"';}else if($item['marked']==''){echo ' class="r"';} ?>><?php if($item['result']!=''){
		
					$pres = $item['result'];
					if($pres>=85){$gres=7;}
					else if($pres>=75){$gres=6;}
					else if($pres>=65){$gres=5;}
					else if($pres>=50){$gres=4;}
					else if($pres>=40){$gres=3;}
					else if($pres>=25){$gres=2;}
					else {$gres=1;}
					
		echo $gres;} ?>
		</i>
		</li>
	<?php } endforeach?>
	</ul>